package org.ysu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Blob;
import java.util.Arrays;
import lombok.Data;

/**
 * 
 * @TableName poor
 */
@TableName(value ="poor")
@Data
public class Poor implements Serializable {
    /**
     * 贫困人员编号
     */
    @TableId(type = IdType.AUTO)
    private Integer pId;

    /**
     * 身份证号
     */
    private String idnumber;

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 电话号码
     */
    private String phone;

    /**
     * 民族
     */
    private String nation;

    /**
     * 是否户主
     */
    private Integer ishead;

    /**
     * 与户主关系
     */
    private String relation;

    /**
     * 工作情况
     */
    private String work;

    /**
     * 所属户id
     */
    private Integer fId;

    /**
     * 健康
     */
    private String health;

    /**
     * 是否有医保
     */
    private Integer insurance;

    /**
     * 是否有低保
     */
    private Integer basic;

    /**
     * 头像
     */
    private String avator;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pId=").append(pId);
        sb.append(", idnumber=").append(idnumber);
        sb.append(", name=").append(name);
        sb.append(", age=").append(age);
        sb.append(", phone=").append(phone);
        sb.append(", nation=").append(nation);
        sb.append(", ishead=").append(ishead);
        sb.append(", relation=").append(relation);
        sb.append(", work=").append(work);
        sb.append(", fId=").append(fId);
        sb.append(", health=").append(health);
        sb.append(", insurance=").append(insurance);
        sb.append(", basic=").append(basic);
        sb.append(", avator=").append(avator);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}